package com.watcloud.plugin.impl.kingbase;

import com.alibaba.nacos.plugin.datasource.mapper.ConfigInfoBetaMapper;
import com.watcloud.plugin.constants.DataSourceConstant;

public class ConfigInfoBetaMapperByKingbase extends KingbaseAbstractMapper implements ConfigInfoBetaMapper {

	@Override
	public String findAllConfigInfoBetaForDumpAllFetchRows(int startRow, int pageSize) {
		return " SELECT t.id,data_id,group_id,tenant_id,app_name,content,md5,gmt_modified,beta_ips,encrypted_data_key "
				+ " FROM ( SELECT id FROM config_info_beta  ORDER BY id LIMIT " + startRow + "," + pageSize + " )"
				+ "  g, config_info_beta t WHERE g.id = t.id ";
	}

	@Override
	public String getDataSource() {
		return DataSourceConstant.KINGBASE;
	}

}
